.syntax-diagram-root {
  background: #faf9f9;
  position: relative;
  & pre {
    max-height: none !important;
  }
  & .source-copy-btn {
    z-index: 2;
    cursor: pointer;
    position: absolute;
    left: 16px;
    top: 5px;
    border-radius: 4px;
    color: #FF6407;
    font-size: 12px;
    border: none;
    background: none;
  }
}

.syntax-diagram-toolbar {
  position: absolute;
  left: 0;
  right: 0;
  text-align: right;
  z-index: 1;
  & .button {
    padding: 4px 8px;
    outline: none;
    cursor: pointer;
    background-color: #f6f1ef;
    border-color: transparent;
    color: rgba(0,0,0,.7);
    transition: all .3s;
    & span {
      display: inline-block;
      vertical-align: middle;
    }
    &:hover {
      color: #FF6407;
    }
    &.is-active {
      color: #FF6407;
      background-color: #fef4ee;
    }
  }
}
.syntax-diagram-container {
  $stroke: #4f423b;

  padding: 20px 20px 0; // $p1;

  dt {
    &:first-child {
      margin-top: 0;
    }
    &::after {
      font-weight: normal;
      content: ' ::=';
    }
  }

  dd {
    overflow-x: auto;
    overflow-y: hidden; // needed to make it look good on IE 11.
  }

  path {
    fill: none;
    stroke-width: 1;
    stroke: $stroke;
  }

  text {
    font: 12px Verdana, sans-serif;
    text-anchor: middle;
  }

  rect {
    fill: #fcddca;
    stroke-width: 1;
    stroke: $stroke;
  }

  .start-end {
    fill: $stroke;
  }

  .terminal {
    rect {
      fill: #d0e2f3;
    }
    text {
      font-weight: bold;
    }
  }
}
.source-container {
  padding-top: 30px;
}
